package com.spaceobj.chess.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

@Data
@TableName("spectator")
public class Spectator {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("game_id")
    private Integer gameId;

    @TableField("spectator_id")
    private Integer spectatorId;

    @TableField("joined_at")
    private LocalDateTime joinedAt;

    @TableField("left_at")
    private LocalDateTime leftAt;

    @TableField("remark")
    private String remark;

    @TableField("role")
    private String role;
} 